package cpr.helper;

public class HashCodeUtil {
	
	public static int hashCode(int[] digs) {
		
		int hash =0;
		for (int i = 0; i < digs.length; i++) {
			hash += digs[i];
			hash += (hash<<10);
			hash ^= (hash>>6);
		}
		hash += (hash << 3);
		hash ^= (hash >> 11);
		hash += (hash << 15);
		return hash;
		
	}
}
